﻿using log4net;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommServer.Common
{
	public class Data
	{
		protected static ILog logger = LogManager.GetLogger(typeof(Program));

		/// <summary>
		/// 矿机信息集合。
		/// </summary>
		public static ConcurrentDictionary<int, Models.MinerModel> Miner = new ConcurrentDictionary<int, Models.MinerModel>();

		/// <summary>
		/// 管理端信息集合。
		/// </summary>
		public static ConcurrentDictionary<int, List<Models.ManagerModel>> Manager = new ConcurrentDictionary<int, List<Models.ManagerModel>>();

		/// <summary>
		/// 手机端信息集合。
		/// </summary>
		public static ConcurrentDictionary<int, List<Models.ManagerModel>> App = new ConcurrentDictionary<int, List<Models.ManagerModel>>();

		/// <summary>
		/// NodeServer链接Id集合。
		/// </summary>
		public static ConcurrentDictionary<int, Models.NodeServerModel> NodeServer = new ConcurrentDictionary<int, Models.NodeServerModel>();
	}
}
